package com.wx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FavorVO {
    private Integer id;
    private String username;
    private String carName;
    private String carNo;
    private String carBrand;
    private String image;
    private Long price;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    //@DateTimeFormat(pattern = "yyyy-MM-dd")  //前端接受的数据反序列化
    private LocalDate manu_date;
    private Long sales;
    private Long amount;
}
